﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace CodeStash.Models.Snippet
{
    public class SnippetRatingModel
    {
        public SnippetRatingModel(int codeSnippetId, int rating, int totalRaters, double averageRating)
        {
            this.CodeSnippetId = codeSnippetId;
            this.Rating = rating;
            this.TotalRaters = totalRaters;
            this.AverageRating = averageRating;

        }

        public int CodeSnippetId { get; private set; }
        public int Rating { get; private set; }
        public int TotalRaters { get; private set; }
        public double AverageRating { get; private set; }
    }
}